<template>
  <van-search
    v-model="keyword"
    shape="round"
    autofocus
    show-action
    background="#4fc08d"
    placeholder="请输入书名/作者/ISBN"
  >
    <template #action>
      <span class="txt" @click="goSearch">搜索</span>
    </template>

  </van-search>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { useRouter,useRoute } from "vue-router";

let $router = useRouter();

// 定义变量
let keyword = ref<string>("");
let address = ref<string>("杭州");

function goSearch(){
  
};
</script>

<style scoped>
.txt {
  color: #fff;
}
.addr {
  margin-right: 10px;
}
</style>